package cn.edu.ecut.test;

import com.mozicoding.jdbc.DatabaseType;
import com.mozicoding.jdbc.JdbcHelper;

/**
 * 测试更新操作
 */
public class JdbcHelperTest2 {
    public static void main(String[] args) {
        JdbcHelper helper=JdbcHelper.getInstance(DatabaseType.MYSQL);
        String update="UPDATE t_students SET name=? ,gender=? ,date_of_birth =? WHERE id=?";
        Object[] param={"陈帅帅呀","男","2020-02-02",1};
        int count=helper.update(update,param);
        System.out.println("count:"+count);
        helper.release();
    }
}
